home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form NameInpt
- BorderStyle = 3 'Fixed Dialog
- Caption = "Rename Element"
- ClientHeight = 2070
- ClientLeft = 3810
- ClientTop = 5115
- ClientWidth = 3600
- ClipControls = 0 'False
- Height = 2535
- Left = 3720
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2070
- ScaleWidth = 3600
- Top = 4740
- Width = 3780
- Begin VB.CommandButton CancelBtn
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 375
- Left = 960
- TabIndex = 5
- Top = 1560
- Width = 1215
- End
- Begin VB.CommandButton OKBtn
- Caption = "OK"
- Default = -1 'True
- Height = 375
- Left = 2280
- TabIndex = 4
- Top = 1560
- Width = 1215
- End
- Begin VB.TextBox NewText
- Height = 285
- Left = 360
- TabIndex = 3
- Top = 960
- Width = 2655
- End
- Begin VB.TextBox OldText
- Enabled = 0 'False
- Height = 285
- Left = 360
- Locked = -1 'True
- TabIndex = 1
- Top = 360
- Width = 2655
- End
- Begin VB.Label Label2
- BackStyle = 0 'Transparent
- Caption = "New Name:"
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 720
- Width = 1215
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "Old Name:"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 975
- End
- Attribute VB_Name = "NameInpt"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub CancelBtn_Click()
- GlobalResult = False
- Unload NameInpt
- End Sub
- Private Sub Form_Load()
- OldText.text = GlobalText
- If Asc(Mid(OldText.text, 1, 1)) < 32 Then
- NewText.text = Mid(OldText.text, 1, 1)
- NewText.SelStart = 2 ' Move caret over
- End If
- End Sub
- Private Sub OKBtn_Click()
- GlobalResult = True
- GlobalText = NewText.text
- Unload NameInpt
- End Sub
-